gdk: Drop the GdkSurfaceTypeHint enum
authorMatthias Clasen <mclasen@redhat.com>
Tue, 26 May 2020 23:31:53 +0000 (19:31 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 26 May 2020 23:34:59 +0000 (19:34 -0400)
This is not used in public api anymore.
Some of the backends still use it internally,
so keep it in gdkinternals.h for now.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkinternals.h
gdk/gdktypes.h

index 547db24d89974d3512b68d6414f4fa1f8353355e..18f6615a8adee62a331c99e4c0e5fd3e6bebdedd 100644 (file)
@@ -174,7 +174,6 @@ gdk_rgba_get_type
 GdkSurface
 GdkGravity
 GdkSurfaceEdge
-GdkSurfaceTypeHint
 GdkSurfaceState
 gdk_surface_new_toplevel
 gdk_surface_new_popup
index 9e8d543a699356092763bad12f0d701f683121ce..586519c76dc891969a5cb706bcb873e40349eae9 100644 (file)
@@ -313,6 +313,24 @@ typedef enum
   GDK_HINT_USER_SIZE   = 1 << 8
 } GdkSurfaceHints;
 
+typedef enum
+{
+  GDK_SURFACE_TYPE_HINT_NORMAL,
+  GDK_SURFACE_TYPE_HINT_DIALOG,
+  GDK_SURFACE_TYPE_HINT_MENU,           /* Torn off menu */
+  GDK_SURFACE_TYPE_HINT_TOOLBAR,
+  GDK_SURFACE_TYPE_HINT_SPLASHSCREEN,
+  GDK_SURFACE_TYPE_HINT_UTILITY,
+  GDK_SURFACE_TYPE_HINT_DOCK,
+  GDK_SURFACE_TYPE_HINT_DESKTOP,
+  GDK_SURFACE_TYPE_HINT_DROPDOWN_MENU,  /* A drop down menu (from a menubar) */
+  GDK_SURFACE_TYPE_HINT_POPUP_MENU,     /* A popup menu (from right-click) */
+  GDK_SURFACE_TYPE_HINT_TOOLTIP,
+  GDK_SURFACE_TYPE_HINT_NOTIFICATION,
+  GDK_SURFACE_TYPE_HINT_COMBO,
+  GDK_SURFACE_TYPE_HINT_DND
+} GdkSurfaceTypeHint;
+
 struct _GdkGeometry
 {
   gint min_width;
index edb92b66385f7a11b9b6096bb35a39e8ec8ee846..4e1cc597c436850e85f727d8e2e1f986e559abef 100644 (file)
@@ -334,54 +334,6 @@ typedef enum {
   GDK_VULKAN_ERROR_NOT_AVAILABLE,
 } GdkVulkanError;
 
-/**
- * GdkSurfaceTypeHint:
- * @GDK_SURFACE_TYPE_HINT_NORMAL: Normal toplevel window.
- * @GDK_SURFACE_TYPE_HINT_DIALOG: Dialog window.
- * @GDK_SURFACE_TYPE_HINT_MENU: Window used to implement a menu; GTK uses
- *  this hint only for torn-off menus, see #GtkTearoffMenuItem.
- * @GDK_SURFACE_TYPE_HINT_TOOLBAR: Window used to implement toolbars.
- * @GDK_SURFACE_TYPE_HINT_SPLASHSCREEN: Window used to display a splash
- *  screen during application startup.
- * @GDK_SURFACE_TYPE_HINT_UTILITY: Utility windows which are not detached
- *  toolbars or dialogs.
- * @GDK_SURFACE_TYPE_HINT_DOCK: Used for creating dock or panel windows.
- * @GDK_SURFACE_TYPE_HINT_DESKTOP: Used for creating the desktop background
- *  window.
- * @GDK_SURFACE_TYPE_HINT_DROPDOWN_MENU: A menu that belongs to a menubar.
- * @GDK_SURFACE_TYPE_HINT_POPUP_MENU: A menu that does not belong to a menubar,
- *  e.g. a context menu.
- * @GDK_SURFACE_TYPE_HINT_TOOLTIP: A tooltip.
- * @GDK_SURFACE_TYPE_HINT_NOTIFICATION: A notification - typically a “bubble”
- *  that belongs to a status icon.
- * @GDK_SURFACE_TYPE_HINT_COMBO: A popup from a combo box.
- * @GDK_SURFACE_TYPE_HINT_DND: A window that is used to implement a DND cursor.
- *
- * These are hints for the window manager that indicate what type of function
- * the window has. The window manager can use this when determining decoration
- * and behaviour of the window. The hint must be set before mapping the window.
- *
- * See the [Extended Window Manager Hints](http://www.freedesktop.org/Standards/wm-spec)
- * specification for more details about window types.
- */
-typedef enum
-{
-  GDK_SURFACE_TYPE_HINT_NORMAL,
-  GDK_SURFACE_TYPE_HINT_DIALOG,
-  GDK_SURFACE_TYPE_HINT_MENU,          /* Torn off menu */
-  GDK_SURFACE_TYPE_HINT_TOOLBAR,
-  GDK_SURFACE_TYPE_HINT_SPLASHSCREEN,
-  GDK_SURFACE_TYPE_HINT_UTILITY,
-  GDK_SURFACE_TYPE_HINT_DOCK,
-  GDK_SURFACE_TYPE_HINT_DESKTOP,
-  GDK_SURFACE_TYPE_HINT_DROPDOWN_MENU, /* A drop down menu (from a menubar) */
-  GDK_SURFACE_TYPE_HINT_POPUP_MENU,    /* A popup menu (from right-click) */
-  GDK_SURFACE_TYPE_HINT_TOOLTIP,
-  GDK_SURFACE_TYPE_HINT_NOTIFICATION,
-  GDK_SURFACE_TYPE_HINT_COMBO,
-  GDK_SURFACE_TYPE_HINT_DND
-} GdkSurfaceTypeHint;
-
 /**
  * GdkAxisUse:
  * @GDK_AXIS_IGNORE: the axis is ignored.